package com.tw.modules.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author maxiaodong
 * @since 2018-04-27
 */
@TableName("tw_user")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    @TableId("u_phone")
	private Long uPhone;
	@TableField("u_username")
	private String uUsername;
	@TableField("u_password")
	private String uPassword;
	@TableField("u_image")
	private String uImage;
	@TableField("u_sex")
	private Integer uSex;
	@TableField("u_email")
	private String uEmail;


	public Long getuPhone() {
		return uPhone;
	}

	public void setuPhone(Long uPhone) {
		this.uPhone = uPhone;
	}

	public String getuUsername() {
		return uUsername;
	}

	public void setuUsername(String uUsername) {
		this.uUsername = uUsername;
	}

	public String getuPassword() {
		return uPassword;
	}

	public void setuPassword(String uPassword) {
		this.uPassword = uPassword;
	}

	public String getuImage() {
		return uImage;
	}

	public void setuImage(String uImage) {
		this.uImage = uImage;
	}

	public Integer getuSex() {
		return uSex;
	}

	public void setuSex(Integer uSex) {
		this.uSex = uSex;
	}

	public String getuEmail() {
		return uEmail;
	}

	public void setuEmail(String uEmail) {
		this.uEmail = uEmail;
	}

	@Override
	protected Serializable pkVal() {
		return this.uPhone;
	}

	@Override
	public String toString() {
		return "User{" +
			", uPhone=" + uPhone +
			", uUsername=" + uUsername +
			", uPassword=" + uPassword +
			", uImage=" + uImage +
			", uSex=" + uSex +
			", uEmail=" + uEmail +
			"}";
	}
}
